<?php
class smartyController extends \Hyang\Controller
{
   public function indexAction()
   {
       // 封装以后的结果
       $this->_indexAll21();return;

       $this->view->assign('name','Smarty');
       $this->view->display(_VIEW.'Smarty/index.html');
   }
   private function _indexAll21()
   {
       $this->setVar('name','Smarty');
       $this->setVar('text',function($t){
           return $t->getVEVersion();
       });
       $this->render();
   }
   public function _init()
   {
       $this->selfViewParam = array(
           'name' => 'Smarty'
       );
   }
}